package utils;

public class OrderChecker {
    public OrderChecker(){
        ;
    }

    public boolean check(int[] arr) {
        if (arr.length == 1) return true;
        int cur = arr[0];
        for (int index=1; index<arr.length; index++) {
            if (cur > arr[index]) return false;
            cur = arr[index];
        }
        return true;
    }
}
